package com.ruibang.glass.quality.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruibang.glass.quality.entity.EveryHourReverseInvestment;
import com.ruibang.glass.quality.mapper.EveryHourReverseInvestmentMapper;
import com.ruibang.glass.quality.service.EveryHourReverseInvestmentService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: songJinKang
 * @CreateTime: 2023-09-13  14:11
 * @Description: TODO
 * @Version: 1.0
 */
@Service
@Slf4j
public class EveryHourReverseInvestmentServiceImpl extends ServiceImpl<EveryHourReverseInvestmentMapper, EveryHourReverseInvestment> implements EveryHourReverseInvestmentService {


    @Override
    public List<EveryHourReverseInvestment> getEveryHourReverseInvestment(List<String> times) {
        QueryWrapper<EveryHourReverseInvestment> erQw = new QueryWrapper<>();
        erQw.lambda().in(EveryHourReverseInvestment::getEveryHourReverseTime, times);
        return this.list(erQw);
    }

}
